<script type="text/javascript">
Highcharts.setOptions({
   global: {
      useUTC: false
   },
   colors: ['#FF0000','#0000FF','#00FF00','#4572A7', '#AA4643', '#89A54E', '#80699B', '#3D96AE', 
		'#DB843D', '#92A8CD', '#A47D7C', '#B5CA92'] //填充颜色
});

Highcharts.setOptions({
					lang: {
							months: ['1', '2', '3', '4', '5', '6',  '7', 
							'8', '9', '10', '11', '12'],
									weekdays: ['日', '一', '二', '三', '四', '五', '六']
										}
										});


var chart;
$(document).ready(function() {
   chart = new Highcharts.Chart({
      chart: {
         renderTo: '#divname#',
         defaultSeriesType: '#charttype#',
		 borderWidth: 1,
		 borderColor: '#B5D6E6'
		  },
      title: {
         text: '#charttitle#'
      },
      xAxis: {//x轴时间格式化
         type: 'datetime',	
		dateTimeLabelFormats:{
		 	millisecond:'%H:%M:%S.%L',
				second:'%H:%M:%S',
					minute:'%H:%M',
						hour:'%H:%M',
							day:'%b月%e',
								week:'%b月%e',
									month:'%y年%b月%e',
										year:'%Y'
		 },
         labels:{
         step:1
     	}
      },
      yAxis: {
         title: {
            text: '单位：#ytitle#' //y轴标题:单位
         },
         min: 0, //固定坐标最小值为0
         minorGridLineWidth: 1, 
         gridLineWidth: 1, //网格线
         alternateGridColor: null         
      },
      tooltip: {
         formatter: function() {
                   return ''+'时间:'+
               Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', this.x) +'<br >数值: '+ this.y + '<br >单位: #ytitle#';			   
         }
      },
      plotOptions: {
		 
         #charttype#: {
		 	allowPointSelect: true,
		    lineWidth: 0,			
            states: {
               hover: {			      	   	  
                  lineWidth: 1
               }
            },
            marker: {
               enabled: false,
			   radius: 0,
               states: {
                  hover: {
                     enabled: true,
                     symbol: 'circle',
                     radius: 2,
                     lineWidth: 0
                  }
               }   
            },
			#xcategories#            
         }
      },
	  
      series: [#yseries#]
      ,
      navigation: {
         menuItemStyle: {
            fontSize: '12px'
         }
      }
   });    
});
</script>
